﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using WCFMINERP.MODEL.Order;


using DevExpress.XtraGrid;
using System.Drawing;
using DevExpress.XtraEditors.Repository;
using WCFMINERP.MODEL;

namespace WCFMINERP.Order.IView
{
    public interface IOrderView
    {
        #region 属性
        /// <summary>
        /// 照片纸型combox
        /// </summary>
        RepositoryItemComboBox cmboxPaperType { get; }
        /// <summary>
        /// 照片纸面combox
        /// </summary>
        RepositoryItemComboBox cmboxPaperFace { get; }
        /// <summary>
        /// 产品纸面combox
        /// </summary>
        RepositoryItemComboBox cmboxOrderInfoPaperFace { get; }
        /// <summary>
        /// 产品纸型combox
        /// </summary>
        RepositoryItemComboBox cmboxOrderInfoPaperType { get; }
        /// <summary>
        /// 公共计价项目combox
        /// </summary>
        RepositoryItemCheckedComboBoxEdit cmboxCommonChargeItem { get; }
        /// <summary>
        /// 产品gc
        /// </summary>
        GridControl GcOrderInfo { get; }
        /// <summary>
        /// 照片gc
        /// </summary>
        GridControl GcPhotoInfo { get; }
        /// <summary>
        /// 装载产品的控件容器
        /// </summary>
        FlowLayoutPanel FlpProduct { get; }
        /// <summary>
        ///  装载订单的控件容器
        /// </summary>
        FlowLayoutPanel FlpShowOrderInfo { get; }

        /// <summary>
        /// 公共收费项目列表
        /// </summary>
        List<CommonChargeItemInfo> CommonChargeItemList { get; set; }

        /// <summary>
        /// 纸面列表
        /// </summary>
        List<PaperFaceInfo> PaperFaceList { get; set; }

        /// <summary>
        /// 纸面列表
        /// </summary>
        List<PaperTypeInfo> PaperTypeList { get; set; }
        /// <summary>
        /// 待开单产品集合
        /// </summary>
        List<OrderInfo> OrderInfoList { get; set; }
        /// <summary>
        /// 产品列表
        /// </summary>
        List<ProductInfo> ProducList { get; set; }
        /// <summary>
        /// 被选中添加照片的产品
        /// </summary>
        OrderInfo OrderInfoSelectedToAddPhotos { get; set; }


        #endregion

        #region 方法

        /// <summary>
        /// 绑定产品分类
        /// </summary>
        /// <param name="productCategoryList"></param>
        /// <param name="flp"></param>
        void LinkProductCategory(FlowLayoutPanel flp);

        /// <summary>
        /// 绑定常用产品
        /// </summary>
        /// <param name="productInfoList"></param>
        /// <param name="flp"></param>
        void LinkDailyProducts(FlowLayoutPanel flp);

        /// <summary>
        /// 绑定公共计价项目
        /// </summary>
        void LinkCommonChargeItem();

        /// <summary>
        /// 显示信息
        /// </summary>
        /// <param name="msg"></param>
        void ShowImportMessage(string msg);
        /// <summary>
        /// 开单完成后把开过单的产品刷新到初始状态
        /// </summary>
        /// <param name="inList"></param>
        void ClearProductStatus();

        #endregion

    }
}
